package com.bs.manager04.mapper;

import com.bs.manager04.entity.Userrole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 用户角色关联表 Mapper 接口
 * </p>
 *
 * @author yao
 * @since 2022-12-17
 */
public interface UserroleMapper extends BaseMapper<Userrole> {
    //根据用户id，删除该用户所对应的角色
    public int delUserByID(String userid);

    //通过添加或修改给用户添加角色
    public int addRoles(@Param("userid") String userid,@Param("roleids") String[] roleids);

}
